package person_driver;

public class DriverFactory {
    public person get_driver(int i){
        if (i==1){
            return new Bus();
        }else if (i==2){
            return new Car();
        }else if (i==3){
            return new Truck();
        }else {
            return null;
        }
    }
}
